#include "Bullet.h"

Bullet::Bullet():mVelocity(2.5f, 0.0f, 0.0f), trash(false), life(0)
{}
Bullet::~Bullet()
{}

//-- Returns the current bullet angle
float Bullet::GetAngle()
{
	return mDirection;
}
//-- Sets the bullets rotation angle
void Bullet::SetRotationAngle(float angle)
{
	mDirection = angle;
}

//-- Returns true if the bullet is out of range
bool Bullet::IsOutOfRange()
{
	return mOutOfRange;
}

//-- Out of range boolean is set the given value
void Bullet::SetOutOfRange(bool value)
{
	mOutOfRange = value;
}

//-- The marker transform when the bullet is fired
void Bullet::SetMarkerInstance(abfw::Matrix44 mat)
{
	marker_instance = mat;
}

//-- returns the bullets marker transform
abfw::Matrix44 Bullet::GetMarkerInstance()
{
	return marker_instance;
}
